﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_STDIO_H
#define CC_STDIO_H

#include "cc_common.h"
#include "cc_stdlib.h"
#include <stdio.h>

// str should be like "hello", not the pointer type (p) and so on.
#define PRINT_LN(str)			printf(str"\n")	

#ifdef __cplusplus
#include <iostream>
#define COUT_ENDL(message)			std::cout << (message) << std::endl; 
#endif

__BEGIN_DECLS

FILE * cc_fopen(	
	const char *fileName,
	const char *openMode
);

int __cdecl cc_fclose( FILE *stream );
int __cdecl cc_printf( const char *format, ... );
/*
int __cdecl cc_printf(
	const char *format,
	...
);
*/

__END_DECLS

#endif